<%- include('common/head.ejs') %>
<%- include('common/body.ejs') %>
<%- include('common/head-nav.ejs') %>
<h1 class="center">用户注册</h1>

<form id="register" class="form-horizontal center">
    <div class="form-group">
        <label class="control-label col-sm-3">用户名:</label>

        <div class="col-sm-8">
            <input class="form-control" name="name" type="text" placeholder="请输入用户名"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">密码:</label>

        <div class="col-sm-8">
            <input class="form-control" name="password" type="password" placeholder="请输入至少六位密码"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">重复密码:</label>

        <div class="col-sm-8">
            <input class="form-control" name="rePassword" type="password" placeholder="请输入与上面一致的密码"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">邮件：</label>

        <div class="col-sm-8">
            <input class="form-control" name="email" type="text" placeholder="请输入地址"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">电话：</label>

        <div class="col-sm-8">
            <input class="form-control" name="photo" type="text" placeholder="请输入电话"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">收货地址：</label>

        <div class="col-sm-8">
            <input class="form-control" name="SA" type="text" placeholder="请输入收货地址"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">身份证：</label>

        <div class="col-sm-8">
            <input class="form-control" name="idCard" type="text" placeholder="请输入身份证号码" value="421023199507103813"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">注册类型：</label>

        <div class="col-sm-8">
            <input class="form-control" id="name" name="admin" type="text" data-toggle="dropdown" value="普通用户"
                   readonly/>
            <ul class="dropdown-menu" style="left: auto;width: 90%;">
                <li><a href="javascript:setAdmin('普通用户')">普通用户</a></li>
                <li><a href="javascript:setAdmin('店主')">店主</a></li>
            </ul>
        </div>
    </div>

    <div class="col-sm-offset-3 col-sm-8">
        <button type="button" class="btn btn-primary btn-block" onclick="saveUserInfo()">注册</button>
    </div>
</form>

<script src="/plug-in/bootstrap-formValidation/js/formValidation.js"></script>
<script src="/plug-in/bootstrap-formValidation/js/framework/bootstrap.min.js"></script>
<script src="/plug-in/bootstrap-formValidation/js/language/zh_CN.js"></script>
<script src="/javascripts/user.js"></script>
<%- include('common/footer.ejs') %>